The object inspector is not a child of the main looking glass dialog,
so it no longer receives pointer/touch events with the new grab API.
Fix this by pushing/popping a separate grab.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5150
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2218>
open(sourceActor) {
if (this._open)
return;
+
+ const grab = Main.pushModal(this, { actionMode: Shell.ActionMode.LOOKING_GLASS });
+ if (grab.get_seat_state() === Clutter.GrabState.NONE) {
+ Main.popModal(grab);
+ return;
+ }
+
+ this._grab = grab;
this._previousObj = null;
this._open = true;
this.show();
close() {
if (!this._open)
return;
+ Main.popModal(this._grab);
+ this._grab = null;
this._open = false;
this.hide();
this._previousObj = null;